<?php

include "../inc/item_functions.inc.php";

$cat_id = geta_category_id();

foreach ($cat_id as $cat)
  {
    $cat_name = get_category_info($cat);
    echo "///Cat name: " . $cat_name['name'];
    $its_items = get_item_by_category($cat);
    foreach ($its_items as $item)
      {
	echo "///Item name: " . $item['item_name']
	  . "///Availablility: " . $item['item_avail'];
      }
  }

?>
    